<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:py="http://purl.org/kid/ns#"
    py:extends="'master.kid'">
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" 
    py:replace="''"/>
<title>Action - PyHMon Web Interface</title>
</head>
<body>
    <h2>Action #${action.action_id}</h2>
    <form action="save_action" method="post">
	<input type="hidden" name="action_id" value="${action.action_id}"/>
	Method: <input type="text" name="method"
	    value = "${action.method}"/><br />
	Event type: <input type="text" name="event_type"
	    value="${action.event_type}"/><br />
	Message: <input type="text" name="msg" value="${action.msg}"/><br />
	Group: <select name="group">
	    <option py:for="g in allgroups" value = "${g.group_id}"
		py:attrs="{'checked':'yes'} if g.group_id == action.group_id
		    else {}">
		${g.group_name}</option>
        </select><br />
	<br /><input type="submit" name="submit" value="Save"/>
    </form>
</body>
</html>
